<?php
/*
	检查库存是否足够
*/
defined('BY_JYA') or exit('error');
list($goods_id,$active_id,$num)=$arguments;
$seckillinfo = $this->model('model')->getSeckill($goods_id,$optionid,'',$_SESSION['uid']);
$title=pdo_getcolumn('jy_weishop_goods',array('id'=>$goods_id),'title');
if($seckillinfo['taskid']){
	$msg=$this->model('model')->checkBuy($seckillinfo,$title,'',$num);
}
return $msg;